package com.ruoyi.recruit.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.recruit.mapper.EDeliverMapper;
import com.ruoyi.common.core.domain.e_recruit.EDeliver;
import com.ruoyi.recruit.service.IEDeliverService;

/**
 * 投递记录Service业务层处理
 * 
 * @author JYW
 * @date 2024-01-30
 */
@Service
public class EDeliverServiceImpl implements IEDeliverService 
{
    @Autowired
    private EDeliverMapper eDeliverMapper;

    /**
     * 查询投递记录
     * 
     * @param id 投递记录主键
     * @return 投递记录
     */
    @Override
    public EDeliver selectEDeliverById(Long id)
    {
        return eDeliverMapper.selectEDeliverById(id);
    }

    /**
     * 查询投递记录列表
     * 
     * @param eDeliver 投递记录
     * @return 投递记录
     */
    @Override
    public List<EDeliver> selectEDeliverList(EDeliver eDeliver)
    {
        return eDeliverMapper.selectEDeliverList(eDeliver);
    }

    /**
     * 新增投递记录
     * 
     * @param eDeliver 投递记录
     * @return 结果
     */
    @Override
    public int insertEDeliver(EDeliver eDeliver)
    {
        eDeliver.setCreateTime(DateUtils.getNowDate());
        return eDeliverMapper.insertEDeliver(eDeliver);
    }

    /**
     * 修改投递记录
     * 
     * @param eDeliver 投递记录
     * @return 结果
     */
    @Override
    public int updateEDeliver(EDeliver eDeliver)
    {
        eDeliver.setUpdateTime(DateUtils.getNowDate());
        return eDeliverMapper.updateEDeliver(eDeliver);
    }

    /**
     * 批量删除投递记录
     * 
     * @param ids 需要删除的投递记录主键
     * @return 结果
     */
    @Override
    public int deleteEDeliverByIds(Long[] ids)
    {
        return eDeliverMapper.deleteEDeliverByIds(ids);
    }

    /**
     * 删除投递记录信息
     * 
     * @param id 投递记录主键
     * @return 结果
     */
    @Override
    public int deleteEDeliverById(Long id)
    {
        return eDeliverMapper.deleteEDeliverById(id);
    }
}
